/*
 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "core/components_ng/base/frame_node.h"
#include "core/interfaces/native/utility/converter.h"
#include "arkoala_api_generated.h"

namespace OHOS::Ace::NG::GeneratedModifier {
namespace NodeContainerOpsAccessor {
Ark_NativePointer NodeContainerOpsConstructImpl(Ark_Int32 id,
                                                Ark_Int32 flags)
{
    return {};
}
void NodeContainerSetNodeContainerOptionsImpl(Ark_NativePointer ptr,
                                              Ark_NativePointer controller)
{
    auto frameNode = reinterpret_cast<FrameNode *>(node);
    CHECK_NULL_VOID(frameNode);
    //auto convValue = Converter::Convert<type>(ptr);
    //auto convValue = Converter::OptConvert<type>(ptr); // for enums
    // undefinedModelNG::SetNodeContainerSetNodeContainerOptions(frameNode, convValue);
}
void AddNodeContainerRootNodeImpl(Ark_NativePointer self,
                                  Ark_NativePointer child)
{
    auto frameNode = reinterpret_cast<FrameNode *>(node);
    CHECK_NULL_VOID(frameNode);
    //auto convValue = Converter::Convert<type>(self);
    //auto convValue = Converter::OptConvert<type>(self); // for enums
    // undefinedModelNG::SetAddNodeContainerRootNode(frameNode, convValue);
}
void SetAboutToAppearImpl(Ark_NativePointer self,
                          const Callback_Void* value)
{
    auto frameNode = reinterpret_cast<FrameNode *>(node);
    CHECK_NULL_VOID(frameNode);
    //auto convValue = Converter::Convert<type>(self);
    //auto convValue = Converter::OptConvert<type>(self); // for enums
    // undefinedModelNG::SetSetAboutToAppear(frameNode, convValue);
}
void SetAboutToDisappearImpl(Ark_NativePointer self,
                             const Callback_Void* value)
{
    auto frameNode = reinterpret_cast<FrameNode *>(node);
    CHECK_NULL_VOID(frameNode);
    //auto convValue = Converter::Convert<type>(self);
    //auto convValue = Converter::OptConvert<type>(self); // for enums
    // undefinedModelNG::SetSetAboutToDisappear(frameNode, convValue);
}
void SetAboutToResizeImpl(Ark_NativePointer self,
                          const Callback_Size_Void* value)
{
    auto frameNode = reinterpret_cast<FrameNode *>(node);
    CHECK_NULL_VOID(frameNode);
    //auto convValue = Converter::Convert<type>(self);
    //auto convValue = Converter::OptConvert<type>(self); // for enums
    // undefinedModelNG::SetSetAboutToResize(frameNode, convValue);
}
void SetOnAttachImpl(Ark_NativePointer self,
                     const Callback_Void* value)
{
    auto frameNode = reinterpret_cast<FrameNode *>(node);
    CHECK_NULL_VOID(frameNode);
    //auto convValue = Converter::Convert<type>(self);
    //auto convValue = Converter::OptConvert<type>(self); // for enums
    // undefinedModelNG::SetSetOnAttach(frameNode, convValue);
}
void SetOnDetachImpl(Ark_NativePointer self,
                     const Callback_Void* value)
{
    auto frameNode = reinterpret_cast<FrameNode *>(node);
    CHECK_NULL_VOID(frameNode);
    //auto convValue = Converter::Convert<type>(self);
    //auto convValue = Converter::OptConvert<type>(self); // for enums
    // undefinedModelNG::SetSetOnDetach(frameNode, convValue);
}
void SetOnDestoryEventImpl(Ark_NativePointer self,
                           const Callback_OnDestory_Void* value)
{
    auto frameNode = reinterpret_cast<FrameNode *>(node);
    CHECK_NULL_VOID(frameNode);
    //auto convValue = Converter::Convert<type>(self);
    //auto convValue = Converter::OptConvert<type>(self); // for enums
    // undefinedModelNG::SetSetOnDestoryEvent(frameNode, convValue);
}
} // NodeContainerOpsAccessor
const GENERATED_ArkUINodeContainerOpsAccessor* GetNodeContainerOpsAccessor()
{
    static const GENERATED_ArkUINodeContainerOpsAccessor NodeContainerOpsAccessorImpl {
        NodeContainerOpsAccessor::NodeContainerOpsConstructImpl,
        NodeContainerOpsAccessor::NodeContainerSetNodeContainerOptionsImpl,
        NodeContainerOpsAccessor::AddNodeContainerRootNodeImpl,
        NodeContainerOpsAccessor::SetAboutToAppearImpl,
        NodeContainerOpsAccessor::SetAboutToDisappearImpl,
        NodeContainerOpsAccessor::SetAboutToResizeImpl,
        NodeContainerOpsAccessor::SetOnAttachImpl,
        NodeContainerOpsAccessor::SetOnDetachImpl,
        NodeContainerOpsAccessor::SetOnDestoryEventImpl,
    };
    return &NodeContainerOpsAccessorImpl;
}

}
